package com.qihetimes.earthangel.config;

import com.qiniu.util.Auth;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 七牛鉴权配置
 *
 * @author ：f4cklangzi@gmail.com
 * @date ：Created At 2021/12/11
 */
@Configuration
public class QiniuAuthConfig {
    
    public static final String BUCKET = "earthangel";
    
    private static final String AK = "TlKTlSCok1yTQHBxevtqZ3EzhMypik_-D9vO6bZ6";
    
    private static final String SK = "E5x4AwOUEPpIz6QJJmXzbwyROz4OzkJPYuFSU6z0";
    
    @Bean
    public Auth auth() {
        return Auth.create(AK, SK);
    }
}
